import {BasicPresenter} from "./BasicPresenter";

class DemoComponent extends BasicPresenter {

    constructor() {
        super();
        this.TAG = "[DemoComponent]";
    }

    run(view, model) {
        console.log(this.TAG + " call run method!");
        console.log(view);
        console.log(model);
        console.log(this.TAG + " call run method over!");
    }

    destroy() {
        console.log(this.TAG + " call destroy method!");
    }
}

window.AddonDemoComponent_create || (window.AddonDemoComponent_create = () => {
    return new DemoComponent();
});